
import Mock from 'mockjs'

const educations = ['小学', '初中', '高中', '本科', '硕士', '博士']

export function getUserList () {
  let userList = Mock.mock({
    'values|10-20': [{
      'id|+1': 1,
      'name': '@cname',
      'birthday': '@datetime',
      'isLock|1': [0, 1],
      'score|200-750': 750,
      'age|20-35': 35,
      'status|1': [0, 1],
      'education|1': educations,
      'address': '@county(true)',
      'createTime': '@datetime'
    }]
  })
  return userList.values
}

export const userList = Mock.mock({
  'values|10-20': [{
    'id|+1': 1,
    'name': '@cname',
    'birthday': '@datetime',
    'isLock|1': [0, 1],
    'score|200-750': 750,
    'age|20-35': 35,
    'status|1': [0, 1],
    'education|1': educations,
    'address': '@county(true)',
    'createTime': '@datetime'
  }]
})

export const userInfo = Mock.mock({
  'id|1-10': 10,
  'name': '@cname',
  'birthday': '@datetime',
  'isLock|1': [0, 1],
  'score|200-750': 750,
  'age|20-35': 35,
  'status|1': [0, 1],
  'education|1': educations,
  'address': '@county(true)',
  'createTime': '@datetime'
})


